home *** CD-ROM | disk | FTP | other *** search
/ 9-Digit Zip Code Directory / 9-Digit Zip Code Directory (American Business Information) (ABIZIP-12).ISO / z4src.zip / ERRNO.H < prev    next >
C/C++ Source or Header  |  1993-11-23  |  2KB  |  81 lines

  1. /***
  2. *errno.h - system wide error numbers (set by system calls)
  3. *
  4. *   Copyright (c) 1985-1992, Microsoft Corporation.  All rights reserved.
  5. *
  6. *Purpose:
  7. *   This file defines the system-wide error numbers (set by
  8. *   system calls).  Conforms to the XENIX standard.  Extended
  9. *   for compatibility with Uniforum standard.
  10. *   [ANSI/System V]
  11. *
  12. ****/
  13.  
  14. #ifndef _INC_ERRNO
  15.  
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif 
  19.  
  20. #if (_MSC_VER <= 600)
  21. #define __cdecl     _cdecl
  22. #define __far       _far
  23. #define __near      _near
  24. #endif 
  25.  
  26. /* declare reference to errno */
  27.  
  28. #ifdef _MT
  29. extern int __far * __cdecl __far volatile _errno(void);
  30. #define errno   (*_errno())
  31. #else 
  32. extern int __near __cdecl volatile errno;
  33. #endif 
  34.  
  35. /* Error Codes */
  36.  
  37. #define EZERO       0
  38. #define EPERM       1
  39. #define ENOENT      2
  40. #define ESRCH       3
  41. #define EINTR       4
  42. #define EIO     5
  43. #define ENXIO       6
  44. #define E2BIG       7
  45. #define ENOEXEC     8
  46. #define EBADF       9
  47. #define ECHILD      10
  48. #define EAGAIN      11
  49. #define ENOMEM      12
  50. #define EACCES      13
  51. #define EFAULT      14
  52. #define ENOTBLK     15
  53. #define EBUSY       16
  54. #define EEXIST      17
  55. #define EXDEV       18
  56. #define ENODEV      19
  57. #define ENOTDIR     20
  58. #define EISDIR      21
  59. #define EINVAL      22
  60. #define ENFILE      23
  61. #define EMFILE      24
  62. #define ENOTTY      25
  63. #define ETXTBSY     26
  64. #define EFBIG       27
  65. #define ENOSPC      28
  66. #define ESPIPE      29
  67. #define EROFS       30
  68. #define EMLINK      31
  69. #define EPIPE       32
  70. #define EDOM        33
  71. #define ERANGE      34
  72. #define EUCLEAN     35
  73. #define EDEADLOCK   36
  74.  
  75. #ifdef __cplusplus
  76. }
  77. #endif 
  78.  
  79. #define _INC_ERRNO
  80. #endif 
  81.